package com.jxc.service;

import java.util.List;

import com.jxc.model.po.DealerGrantRecord;
import com.jxc.model.po.Jhtj;
import com.jxc.model.po.User;
import com.jxc.model.po.Xstj;
import com.jxc.model.vo.DataGrid;
import com.jxc.model.vo.VDealerGrantRecord;
import com.jxc.model.vo.VUser;

public interface UserServiceI {

	public VUser get(Long id);

	public List<VUser> combobox(VUser vuser);

	public List<VUser> combobox(VUser vUser, VUser vuser);

	public Integer login(VUser vuser);

	public void save(VUser vuser);

	public DataGrid datagrid(VUser vuser);

	public DataGrid datagrid(VUser vUser, VUser vuser);

	public void delete(String ids);

	public void update(VUser vuser);

	public void editUserInfo(VUser vuser);

	public List<VUser> agency(VUser vUser);

	public DataGrid dealer(VUser vUser);
	
	public void changePassword(VUser vUser);
	public List<Jhtj> findJhsum(Long id);

	public List<Xstj> findSalesum(Long id);

	public List<User> findDealer(VUser vUser);

	public String findDgr(Long id);

	public void changePointTactics(VUser vUser);

	public Long findUsername(String username);

	/**
	 * 获取当前代理商用户发起请求等待确认和已经建立关系的经销商
	 * @param vUser
	 * @return DataGrid
	 */
	public DataGrid myDealer(VUser vUser);

	public VUser login1(VUser vUser);

	public Long findLimitRepertory(Long userId);
	/**
	 * 获取当前代理商已建立关联的所有经销商
	 * @param vUser
	 * @return List<VUser>
	 */
	public List<VUser> findAllMyDealer(VUser vUser);

	public Long findLimitUser(Long userId);
	/**
	 * 获取当前经销商已建立关联的所有代理商
	 * @param vUser
	 * @return List<VUser>
	 */
	public List<VUser> findAllMyAgency(VUser vUser);

	public VUser findUsernameById(Long uid);

	/**
	 * 查询指定用户下面的子帐号
	 * @param vUser
	 * @return
	 */
	public List<VUser> selectUsers(VUser vUser);

}
